﻿<%@ Control Language="C#" ClassName="ProductsTypeFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataTypeName" runat="server" Text="Type Name:" AssociatedControlID="dataTypeName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTypeName" Text='<%# Bind("TypeName") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTypeName" runat="server" Display="Dynamic" ControlToValidate="dataTypeName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCategoryId" runat="server" Text="Category Id:" AssociatedControlID="dataCategoryId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCategoryId" Text='<%# Bind("CategoryId") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataCategoryId" runat="server" Display="Dynamic" ControlToValidate="dataCategoryId" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTypeTitle" runat="server" Text="Type Title:" AssociatedControlID="dataTypeTitle" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTypeTitle" Text='<%# Bind("TypeTitle") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTypeTitle" runat="server" Display="Dynamic" ControlToValidate="dataTypeTitle" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsActive" runat="server" Text="Is Active:" AssociatedControlID="dataIsActive" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsActive" SelectedValue='<%# Bind("IsActive") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


